#pragma once
#include <QWidget>
#include <QPushButton>
#include "OpenFileButton.h"
#include <QSlider>

class VideoWidgetTopWidget : public QWidget
{
    Q_OBJECT

public:
    VideoWidgetTopWidget(QWidget* p = nullptr);
    ~VideoWidgetTopWidget();

    void showRightBtn(bool flag);
    void showOpenFileBtn(bool flag);

    void setPlayStatus(bool Play)
    {
        is_play_ = Play;
    }

protected:
    void resizeEvent(QResizeEvent* event) override;

signals:
    void sig_openFile(const QStringList& file_list);
    void sig_OpenFloder(QString path);
    void sig_openUrl(const QString& url);
    void sig_openPlaylist();

private:
    QPushButton*    open_right_list_button_ = nullptr;
    OpenFileButton* open_file_button_       = nullptr;
    int             is_slider_pressed_      = false;
    bool            is_play_                = false;
};